package com.studyhub.api.problem.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.studyhub.api.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * 收藏记录实体类
 * 
 * @author StudyHub Team
 */
@Getter
@Setter
@TableName("pr_collect_record")
@Schema(name = "CollectRecord", description = "收藏记录信息")
public class CollectRecord extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(description = "收藏记录ID")
    private Long id;

    @Schema(description = "用户ID")
    private Long userId;

    @Schema(description = "问题ID")
    private Long problemId;

    @Schema(description = "状态：0-取消收藏，1-已收藏")
    private Integer status = 1;
}
